export const actions = {
  setIsCollapse: ({commit}, val) => commit('SET_IS_COLLAPSE', val),
  /**
   * 重置缓存的项
   * @param {Object} commit
   * @param {String} value
   */
  resetAddKeepLiveInclude: ({commit}, val) => commit('RESET_ADD_KEEP_LIVE_INCLUDE', val),
  /**
   * 添加缓存的项
   * @param {Object} commit
   * @param {String} value
   */
  addAddkeepLiveInclude: ({commit}, val) => commit('ADD_ADD_KEEP_LIVE_INCLUDE', val),
  /**
   * 移除缓存的项
   * @param {Object} commit
   * @param {Number} value
   */
  delAddkeepLiveInclude: ({commit}, val) => commit('DEL_ADD_KEEP_LIVE_INCLUDE', val),

  /**
   * tabs超出后的左右箭头是否显示
   * @param commit
   * @param val
   * @returns {*}
   */
  setOverFlowTabs: ({commit}, val) => commit('SET_OVERFLOW_TABS', val),
  /**
   * tabs由侧边栏给
   * @param commit
   * @param val
   * @returns {*}
   */
  setTabs: ({commit}, val) => commit('SET_TABS', val),


  // changeSinger:({ commit },val) => commit('SET_SINGER',val),

  // 这里就是复杂的改变的demo

  // changeSinger:({ commit },val) => {
  //   let save = val;
  //   commit('changeSinger',[])
  //   setTimeout(()=>{
  //     if(success){
  //
  //     }else{
  //       commit('changeSinger',save)
  //     }
  //
  //   },3000)
  //
  // },

}


/**
 *  methods: {
    ...mapActions([
      'increment', // 将 `this.increment()` 映射为 `this.$store.dispatch('increment')`

      // `mapActions` 也支持载荷：
      'incrementBy' // 将 `this.incrementBy(amount)` 映射为 `this.$store.dispatch('incrementBy', amount)`
    ]),
    ...mapActions({
      add: 'increment' // 将 `this.add()` 映射为 `this.$store.dispatch('increment')`
    })
  }
 *
 *
 *
 */
